//
//  YourApi.h
//  Oauth
//
//  Created by gao wei on 10-8-10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class OAToken;

@protocol DBDoubanApiDelegate <NSObject>

- (void)infoLoadSuccess:(NSData*)data;
- (void)infoLoadFaild:(NSError*)error;

@end

@interface DBDoubanApi : NSObject {
    NSString *appKey, *appSecret;
    id<DBDoubanApiDelegate> delegate;
}

@property (nonatomic, assign) id<DBDoubanApiDelegate> delegate;
@property (nonatomic, retain) NSString *appKey, *appSecret;

- (void)getUserInfo:(OAToken*)token;

@end

